package com.stu.student_back_end.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.stu.student_back_end.controller.dto.CountDTO;
import com.stu.student_back_end.controller.dto.PageDTO;
import com.stu.student_back_end.entity.TblDorm;
import org.springframework.stereotype.Service;

/**
 * 宿舍service层接口
 */
@Service
public interface ITblDormService extends IService<TblDorm> {

    //分页查询
    Page<TblDorm> queryDorm(PageDTO pageDTO);

    //查询宿舍数
    CountDTO queryDormCount();

    //查询指定条件的楼栋人数
    CountDTO queryBuildNameCount();
}
